package fr.afcepf.atod19.dreamproject.dto;

import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement
public class ClientDTO {
    private int idClient;

    private String dateNaissanceString;

    private byte droits;

    private String identifiant;

    private String mail;

    private String nom;

    private String numTel;

    private String password;

    private String prenom;

    private String sexe;

    private List<AdresseDTO> adressesDTO;

    public ClientDTO() {
        adressesDTO = new ArrayList<AdresseDTO>();
    }

    public int getIdClient() {
        return idClient;
    }

    public void setIdClient(int idClient) {
        this.idClient = idClient;
    }

    public byte getDroits() {
        return droits;
    }

    public void setDroits(byte droits) {
        this.droits = droits;
    }

    public String getIdentifiant() {
        return identifiant;
    }

    public void setIdentifiant(String identifiant) {
        this.identifiant = identifiant;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public String getNom() {
        return nom;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    public String getNumTel() {
        return numTel;
    }

    public void setNumTel(String numTel) {
        this.numTel = numTel;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPrenom() {
        return prenom;
    }

    public void setPrenom(String prenom) {
        this.prenom = prenom;
    }

    public String getSexe() {
        return sexe;
    }

    public void setSexe(String sexe) {
        this.sexe = sexe;
    }

    public List<AdresseDTO> getAdressesDTO() {
        return adressesDTO;
    }

    public void setAdressesDTO(List<AdresseDTO> adresses) {
        this.adressesDTO = adresses;
    }

    public String getDateNaissanceString() {
        return dateNaissanceString;
    }

    public void setDateNaissanceString(String dateNaissanceString) {
        this.dateNaissanceString = dateNaissanceString;
    }

    @Override
    public String toString() {
        return "ClientDTO{" +
                "idClient=" + idClient +
                ", dateNaissance='" + dateNaissanceString + '\'' +
                ", droits=" + droits +
                ", identifiant='" + identifiant + '\'' +
                ", mail='" + mail + '\'' +
                ", nom='" + nom + '\'' +
                ", numTel='" + numTel + '\'' +
                ", password='" + password + '\'' +
                ", prenom='" + prenom + '\'' +
                ", sexe='" + sexe + '\'' +
                ", adresses=" + adressesDTO +
                '}';
    }
}
